package com.hhkj.study.api.user.model.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hhkj.study.admin.course.entity.CourseResourceInfo;
import com.hhkj.study.admin.course.entity.CourseStructure;
import com.hhkj.study.admin.course.model.res.CourseRes;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author luowu
 * @Date 2024/10/12 涵 10:17:42
 */
@Data
public class ApiCustomerUserCourseRes extends CourseRes {

    /**
     * 商品有效期开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date validStartTime;

    /**
     * 商品有效期结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date validEndTime;

    /**
     * 完成课程数
     */
    private Integer finishLessonCount;

    /**
     * 课程总数
     */
    private Integer lessonCount;

    /**
     * 模拟测试题库id
     */
    private Long mockBankId;

    /**
     * 是否体验课 1-是 0-否
     */
    private Integer freeFlag;

    @JsonIgnore
    @Override
    public CourseResourceInfo getAssocResourceStat() {
        return super.getAssocResourceStat();
    }

    @JsonIgnore
    @Override
    public List<CourseStructure> getStructureJson() {
        return super.getStructureJson();
    }
}
